import request from "@/utils/request.js";

export function getStatistics(){
    return request({
        url: '/home/all',
        method: 'get'
    })
}
export function getHT(type,startYear,endYear) {
    return request({
        url: '/home/ht?type='+type+'&startYear='+startYear+'&endYear='+endYear,
        method: 'get'
    })
}
export function getHK(startYear,endYear) {
    return request({
        url: '/home/hk?startYear='+startYear+'&endYear='+endYear,
        method: 'get'
    })
}
export function getJT(startYear,endYear) {
    return request({
        url: '/home/jt?startYear='+startYear+'&endYear='+endYear,
        method: 'get'
    })
}
export function getContractList(param){
    return request({
        url: '/home/contractList',
        method: 'get',
        params:param
    })
}
export function getCwList(param){
    return request({
        url: '/home/cwList',
        method: 'get',
        params:param
    })
}
export function getJtList(param){
    return request({
        url: '/home/jtList',
        method: 'get',
        params:param
    })
}